package scuts.core.instances;
import scuts.core.classes.Enumeration;



class EnumerationInt extends Enumeration<Int>{
  // boilerplate, should be avoided
  public static var get(getInstance, null):EnumerationInt;
  
  static function getInstance ()
  {
    if (get == null) get = new EnumerationInt();
    return get;
  }
  function new () {}
  //
  
  override public function toEnum (i:Int):Int {
    return i;
  }
  
  override public function fromEnum (i:Int):Int {
    return i;
  }
}